package com.mflex.WHSmartWhouseAd.activity;

import android.annotation.SuppressLint;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

//public abstract class BaseActivity extends AppCompatActivity
public abstract class BaseActivity extends AppCompatActivity  implements View.OnClickListener, View.OnKeyListener{

    @SuppressLint("SourceLockedOrientationActivity")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    }

    public abstract void onClick(View view);

    public abstract boolean onKey(View view, int i, KeyEvent keyEvent);
}
